package com.zdd.ehe.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zdd.ehe.entity.NewsData;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zdd.ehe.entity.Role;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ZhuiZhu
 * @since 2023-03-24
 */
public interface INewsDataService extends IService<NewsData> {

    /**
     * 分页查询新闻列表
     * @param page
     * @return
     */
    Page<NewsData> getAllNewsByPage(Page<NewsData> page);


    int addNewsData(NewsData newsData);

    int updateNewsDataById(NewsData newsData);
}
